import type { RouteRecordRaw } from 'vue-router';

import { BasicLayout } from '#/layouts';
import { $t } from '#/locales';

const routes: RouteRecordRaw[] = [
  {
    component: BasicLayout,
    meta: {
      icon: 'lucide:gallery-vertical-end',
      keepAlive: true,
      order: 4,
      title: $t('ads.title'),
    },
    name: 'Ads',
    path: '/ads',
    children: [
      {
        name: 'Ad',
        path: '/ads/ad',
        component: () => import('#/views/ads/ad/index.vue'),
        meta: {
          affixTab: true,
          icon: 'lucide:app-window',
          title: $t('page.menu.ad'),
        },
      },
      {
        name: 'Space',
        path: '/ads/space',
        component: () => import('#/views/ads/space/index.vue'),
        meta: {
          icon: 'lucide:gallery-vertical',
          title: $t('page.menu.space'),
        },
      },
    ],
  },
];

export default routes;
